package com.woniuxy.dudugua.service.impl;

import com.woniuxy.dudugua.entity.ProductInfoImages;
import com.woniuxy.dudugua.mapper.ProductInfoImagesMapper;
import com.woniuxy.dudugua.service.ProductInfoImagesService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ProductInfoImagesServiceImpl implements ProductInfoImagesService {
    @Autowired
    private ProductInfoImagesMapper productInfoImagesMapper;
    @Override
    public int insert(ProductInfoImages productInfoImages) {
        int insert = productInfoImagesMapper.insert(productInfoImages);
        return insert;
    }

    @Override
    public List<ProductInfoImages> selectById(Integer productId) {

        return productInfoImagesMapper.selectByProductId(productId);
    }
}
